import request from '@/utils/request';

export async function getDeviceInfoByPage (params: any) {
    return request('/api/DeviceInfo/getDeviceInfoByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addDeviceInfo (params: any) {
    return request('/api/DeviceInfo/addDeviceInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateDeviceInfo (params: any) {
    return request('/api/DeviceInfo/updateDeviceInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delDeviceInfo (params: any) {
    return request('/api/DeviceInfo/delDeviceInfo', {
    method: 'POST',
    data: params,
  });
}


export async function exportDeviceInfo(params: any) {
    return request('/api/DeviceInfo/exportDeviceInfo', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getDeviceInfoByPage, addDeviceInfo, updateDeviceInfo, delDeviceInfo, exportDeviceInfo }
